from rest_framework import serializers
from app01.models import *


class GradeModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = Grade
        fields = '__all__'


class UserModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'


class UserinfoModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = UserInfo
        fields = '__all__'


class AuthorModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = Author
        fields = '__all__'


class CateModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = Cate
        fields = '__all__'


class FictionModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = Fiction
        fields = '__all__'


class SectionModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = Section
        fields = '__all__'
